#define _CRT_SECURE_NO_WARNINGS

#include "Seqlist.h"

void test1()
{
	SL s1;
	SeqlistInit(&s1);
	SeqlistPushBack(&s1, 4);
	SeqlistPushBack(&s1, 5);
	SeqlistPushBack(&s1, 6);

	SeqlistPushFront(&s1,3);
	SeqlistPushFront(&s1,2);
	SeqlistPushFront(&s1,1);

	//SeqlistPopBack(&s1);
	//SeqlistPopFront(&s1);

	SeqlistInsert(&s1, 3, 8);
	SeqlistErase(&s1, 3);

	//int index=SeqlistFind(&s1, 5);
	//printf("%d",index);

	SeqlistModify(&s1, 1, 9);

	SeqlistPrintf(&s1);
	SeqlistDestory(&s1);
}

int main()
{
	test1();

	return 0;
}